/*
 * @Author: aggfb 714740235@qq.com
 * @Date: 2024-05-21 22:26:21
 * @LastEditors: aggfb 714740235@qq.com
 * @LastEditTime: 2024-05-21 22:48:17
 * @FilePath: \stepper_motor\control\power_detect.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

#ifndef POWER_DETECT_H
#define POWER_DETECT_H

#include "gd32f30x.h"

typedef struct{
	uint16_t	adc_voltage;	//电压ADC
	uint16_t	adc_current;	//电流ADC
	uint32_t	est_voltage;		//滤波电压
	uint32_t	est_current;		//滤波电流
}Power_Typedef;
extern Power_Typedef power;

extern void power_detection_senser(void);		//电源检测运行


#endif
